
      <h1>Edition machine</h1>
      <% form_for(@machine) do |f| %>
        <%= f.error_messages %>


        <table border="0" >
          <tr>
            <td><%= f.label :'Id: ' %></td>
            <td><%= f.id %></td>
         </tr>
        <tr>
          <td><%= f.label :'Nom de machine: ' %></td>
          <td><%= f.text_field :nommachine %></td>
        </tr>
        <tr>
          <td><%= f.label :'Adresse IP: ' %></td>
          <td><%= f.text_field :ipmachine %></td>
        </tr>
        <tr>
          <td><%= f.label :'Adresse mac: ' %></td>
          <td><%= f.text_field :addmac %></td>
        </tr>
        <tr>
          <td><%= f.label :'Syetème: ' %></td>
          <td><%= f.text_field :os %></td>
        </tr>

        <tr>
          <td><%= f.label :'memoire totale: ' %></td>
          <td><%= f.text_field :memoiretotale %></td>
        </tr>

        <tr>
          <td><%= f.label :'Disque dur: ' %></td>
          <td><%= f.text_field :espacedisquet %></td>
        </tr>
        <tr>
          <td><%= f.label :'Salle: ' %></td>
          <td> <%=
               collection_select :machine,"salleid", Salle.find(:all),:id, :nomsalle
               %>
          </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp; </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><%= f.submit 'Modifier' %> </td>
        </tr>
        </table>
      <% end %>

      <%= link_to 'Détail', @machine %> |
      <%= link_to 'Liste', machines_path %>
 
